Micron Document
Fox's Git Mirrors

Node / rns-mirrors / Reticulum-Go.git / files / scripts / cc-darwin-zig.sh

Displaying Raw • Download

scripts/cc-darwin-zig.sh 633735d797cc5f5d48cb2e22e8fd7cd743930daf (633735d7) Text, 412 B

#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024-2026 Quad4.io
#
# Zig CC wrapper for cross-building librns for macOS.
# GOARCH selects the target (amd64 or arm64).

set -eu

arch="${GOARCH:-amd64}"
case "$arch" in
amd64) target="x86_64-macos" ;;
arm64) target="aarch64-macos" ;;
*)
echo "unsupported GOARCH for darwin zig cc: $arch" >&2
exit 1
;;
esac

exec zig cc -target "$target" "$@"

Served by rngit 1.5.2 - Generated in 0.02s